package com.sangeng.controller;

import com.sangeng.service.CategoryService;


import com.sangeng.domain.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;



/**
 * 分类表(Category)表控制层
 *
 * @author makejava
 * @since 2023-06-27 15:33:22
 */
@Slf4j
@RestController
@RequestMapping("/category")
public class CategoryController {
/**
 * 服务对象
 */
@Autowired
private CategoryService categoryService;

/**
 * 全查询
 * @return 查询结果
 */
@GetMapping("/getCategoryList")
public ResponseResult getCategoryList(){
        return categoryService.getCategoryList();
   }

}
